Skip to content

Conversation

uc4w6c
Copy link
Collaborator

@uc4w6c uc4w6c commented Jul 15, 2023

fix #2299.

When springdoc.pre-loading-enabled: true is set, the default locale is specified and openapi is generated, but if another locale is specified from the browser, openapi needs to be generated again .

Improve performance by specifying the locale you want to preload and generating openapi in advance.

Additional explanation
For example, in Japan, the default locale is ja_JP, but the ACCEPT_LANGUAGE specified by the browser is ja, so it is not preloaded.

@uc4w6c
Copy link
Collaborator Author

uc4w6c commented Jul 15, 2023

If the PR is fine, I'll create a doc.

@uc4w6c uc4w6c requested a review from bnasslahsen July 15, 2023 07:35
@bnasslahsen
Copy link
Collaborator

Looks fine thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Performance Issue: springdoc-openapi
2 participants